<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${chongbitable.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">名字：</label>
                            <div class="col-sm-8">
                                <input id="type" name="type" th:value="${chongbitable.type}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">链类型：</label>
                            <div class="col-sm-8">
                                <input id="liantype" name="liantype" th:value="${chongbitable.liantype}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">二维码：</label>
                            <div class="col-sm-3">
                                <input id="image" name="image" th:value="${chongbitable.image}" class="form-control"
                                       type="hidden">
                                <img id="uimg" width="180px" th:src="${chongbitable.image}" height="180px" alt="">
                            </div>
                            <div class="col-sm-6 ">
                                <input type="file" id="file" name="file" accept="image/jpeg,image/png">

                                <button type="button" class="btn btn-success" onclick="uploadFile()">
                                    <i class="fa fa-cloud"></i>上传图片
                                </button>

                                <span style="color: red">步骤：1.选择文件 2.上传图片</span>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">充币地址：</label>
                            <div class="col-sm-8">
                                <input id="address" name="address" th:value="${chongbitable.address}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注：</label>
                            <div class="col-sm-8">
                                <input id="beizhu" name="beizhu" th:value="${chongbitable.beizhu}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/system/chongbitable/edit.js">
</script>
</body>
</html>
